﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Dapper.Model
{
    public class MsgResult<T> where T : class
    {
        public bool Status { get; set; }

        public T Data { get; set; }

        public string Message { get; set; }

        public string ErrorCode { get; set; }

        public static MsgResult<T> Success()
        {
            return new MsgResult<T>
            {
                Status = true
            };
        }

    }
}
